package com.geek.entity.mark;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/11/20
 */
public class OrderDetail {
    private int id;
    private int ordersId;
    private int itemsId;
    private int itemsNum;

    // 一对一 OrderDetail -> Items
    private Items items;

    public OrderDetail() {
    }

    public OrderDetail(int id, int ordersId, int itemsId, int itemsNum) {
        this.id = id;
        this.ordersId = ordersId;
        this.itemsId = itemsId;
        this.itemsNum = itemsNum;
    }

    public OrderDetail(int id, int ordersId, int itemsId, int itemsNum, Items items) {
        this.id = id;
        this.ordersId = ordersId;
        this.itemsId = itemsId;
        this.itemsNum = itemsNum;
        this.items = items;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return ordersId
     */
    public int getOrdersId() {
        return ordersId;
    }

    /**
     * 设置
     * @param ordersId
     */
    public void setOrdersId(int ordersId) {
        this.ordersId = ordersId;
    }

    /**
     * 获取
     * @return itemsId
     */
    public int getItemsId() {
        return itemsId;
    }

    /**
     * 设置
     * @param itemsId
     */
    public void setItemsId(int itemsId) {
        this.itemsId = itemsId;
    }

    /**
     * 获取
     * @return itemsNum
     */
    public int getItemsNum() {
        return itemsNum;
    }

    /**
     * 设置
     * @param itemsNum
     */
    public void setItemsNum(int itemsNum) {
        this.itemsNum = itemsNum;
    }

    /**
     * 获取
     * @return items
     */
    public Items getItems() {
        return items;
    }

    /**
     * 设置
     * @param items
     */
    public void setItems(Items items) {
        this.items = items;
    }

    public String toString() {
        return "OrderDetail{id = " + id + ", ordersId = " + ordersId + ", itemsId = " + itemsId + ", itemsNum = " + itemsNum + ", items = " + items + "}";
    }
}
